package javaClassExercise;

/**
 * Created by lomo on 2017/3/11.
 */
public class classTest {

    String name;
    int age;
    double height;
    double weight;
    String interest;
    boolean sex;

    public classTest(String name, int age, double height, double weight, String interest, boolean sex) {
        this.name = name;
        this.age = age;
        this.height = height;
        this.weight = weight;
        this.interest = interest;
        this.sex = sex;
    }

    public static void main(String[] args) {
        classTest test = new classTest("Lomo", 25, 165.00, 110.0, "read", true);
        String  male;
        if(test.sex) {
            male = "男";
        }else {
            male = "女";
        }

        System.out.print("Name: " + test.name + "，Age: " + test.age + "，Height: " + test.height + "，Weight: "+ test.weight + "，Interest" + test.interest + "，Sex: " + male);
    }

}
